package com.cyzy.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyzy.mapper.CampusOrderMapper;
import com.cyzy.pojo.CampusOrder;
import com.cyzy.service.CampusOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CampusOrderServiceImpl implements CampusOrderService {

    @Autowired
    private CampusOrderMapper campusOrderMapper;

    @Override
    public Page<CampusOrder> selectAll(String orderStatus, String userId, int pageNum, int pageSize) {
        Page<CampusOrder> page = new Page<>(pageNum, pageSize);

        return campusOrderMapper.selectAllOrder(page ,orderStatus, userId);
    }

}
